package com.pattern.facade;

/**
 * @author 冯志立
 * @create 2019-11-01 16:27
 */
public class DVDPlayer {
    //使用单例模式，饿汉式
    private static DVDPlayer instance = new DVDPlayer();

    public static DVDPlayer getInstance(){
        return instance;
    }

    public void on(){
        System.out.println("DVD打开了");
    }
    public void close(){
        System.out.println("DVD关闭了");
    }
    public void play(){
        System.out.println("DVD开始播放");
    }
    public void pause(){
        System.out.println("DVD暂停了");
    }
}
